<script>
$(function(){
$("#track_form").validate({
	submitHandler: function(form){
		$(form).ajaxSubmit({
			success:function(data){
		 	   UIkit.modal.confirm(data.info, function(){
		 		location.reload();
		 		});
			}
		}); 
    } 
})	
})
</script>

<!-- Modal -->
<div class="uk-modal" id="trackModal">
 <form id="track_form"  action='__MODULE__/Delivery/addHandle'  class="uk-form"  method="post">
	 <input type="hidden" name="dv_oid" value="{$order_id}"/>
    <div class="uk-modal-dialog"> <a class="uk-modal-close uk-close"></a>
    <div class="uk-modal-header">{$Think.lang.add_delivery}</div>
<table class="uk-table">
	<tr><td width=120>{$Think.lang.track_company}</td><td>
<select  name="dv_tk_id" required >
	<option value="">--</option>
	<volist name=":getTrackList()" id="vo">
	<option value="{$vo.tk_company}">{$vo.tk_company}</option>	
	</volist>	
</select>	
</td></tr>
	<tr><td>{$Think.lang.delivery_no}</td><td>
<input type="text" name="dv_number"   required value="" />
</td></tr>

  </table>
        <div class="uk-modal-footer uk-text-right">
		<button class="uk-button uk-button-danger" type="submit">{$Think.lang.confirm}</button>
		</div>
    </div>
  </form> 
</div>